package com.zero.test2;

public abstract class Animal {
    private String name;
    private String age;
    private String color;

    public Animal() {
    }

    public Animal(String name, String age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public abstract void eat();

    public void drink(){
        System.out.println("喝水");
    }

}
